/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import java.io.Serializable;
public class BabyMonitor implements Serializable {
	public BabyMonitor() {
	}
	
	private int codSystem;
	
	private java.sql.Timestamp regLogin;
	
	private java.sql.Timestamp regLogout;
	
	private com.pancho.User userCodUser;
	
	private com.pancho.Doctor doctoridDoctor;
	
	private com.pancho.Diagnose diagnose;
	
	private com.pancho.QuestForm questForm;
	
	private void setCodSystem(int value) {
		this.codSystem = value;
	}
	
	public int getCodSystem() {
		return codSystem;
	}
	
	public int getORMID() {
		return getCodSystem();
	}
	
	public void setRegLogin(java.sql.Timestamp value) {
		this.regLogin = value;
	}
	
	public java.sql.Timestamp getRegLogin() {
		return regLogin;
	}
	
	public void setRegLogout(java.sql.Timestamp value) {
		this.regLogout = value;
	}
	
	public java.sql.Timestamp getRegLogout() {
		return regLogout;
	}
	
	public void setUserCodUser(com.pancho.User value) {
		if (this.userCodUser != value) {
			com.pancho.User luserCodUser = this.userCodUser;
			this.userCodUser = value;
			if (value != null) {
				userCodUser.setBabyMonitor(this);
			}
			else {
				luserCodUser.setBabyMonitor(null);
			}
		}
	}
	
	public com.pancho.User getUserCodUser() {
		return userCodUser;
	}
	
	public void setDoctoridDoctor(com.pancho.Doctor value) {
		if (this.doctoridDoctor != value) {
			com.pancho.Doctor ldoctoridDoctor = this.doctoridDoctor;
			this.doctoridDoctor = value;
			if (value != null) {
				doctoridDoctor.setBabyMonitor(this);
			}
			else {
				ldoctoridDoctor.setBabyMonitor(null);
			}
		}
	}
	
	public com.pancho.Doctor getDoctoridDoctor() {
		return doctoridDoctor;
	}
	
	public void setDiagnose(com.pancho.Diagnose value) {
		if (this.diagnose != value) {
			com.pancho.Diagnose ldiagnose = this.diagnose;
			this.diagnose = value;
			if (value != null) {
				diagnose.setBabyMonitorCodSystem(this);
			}
			else {
				ldiagnose.setBabyMonitorCodSystem(null);
			}
		}
	}
	
	public com.pancho.Diagnose getDiagnose() {
		return diagnose;
	}
	
	public void setQuestForm(com.pancho.QuestForm value) {
		if (this.questForm != value) {
			com.pancho.QuestForm lquestForm = this.questForm;
			this.questForm = value;
			if (value != null) {
				questForm.setBabyMonitorCodSystem(this);
			}
			else {
				lquestForm.setBabyMonitorCodSystem(null);
			}
		}
	}
	
	public com.pancho.QuestForm getQuestForm() {
		return questForm;
	}
	
	public String toString() {
		return String.valueOf(getCodSystem());
	}
	
}
